package dhy.lyb.change.model;

import org.springframework.stereotype.Component;

import java.util.List;

/**
 * 用户实体类
 * Created by Administrator on 2016/11/18.
 */
@Component("user")
public class User {
    //基本属性
    private int id;
    private String mobile;
    private String username;
    private String password;
    private int gender;
    private String birth;
    private double weight;
    private double height;
    private int basic;

    private List<Activity> activities;

    public User() {
    }

    public User(String birth, int basic, int gender, double height, int id, String password, String mobile, String username, double weight) {
        this.birth = birth;
        this.basic = basic;
        this.gender = gender;
        this.height = height;
        this.id = id;
        this.password = password;
        this.mobile = mobile;
        this.username = username;
        this.weight = weight;
    }

    public User(List<Activity> activities, int basic, String birth, int gender, double height, int id, String password, String mobile, String username, double weight) {
        this.activities = activities;
        this.basic = basic;
        this.birth = birth;
        this.gender = gender;
        this.height = height;
        this.id = id;
        this.password = password;
        this.mobile = mobile;
        this.username = username;
        this.weight = weight;
    }

    @Override
    public String toString() {
        return "User{" +
                "activities=" + activities +
                ", id=" + id +
                ", mobile='" + mobile + '\'' +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", gender=" + gender +
                ", birth='" + birth + '\'' +
                ", weight=" + weight +
                ", height=" + height +
                ", basic=" + basic +
                '}';
    }

    public int getGender() {
        return gender;
    }

    public void setGender(int gender) {
        this.gender = gender;
    }

    public double getHeight() {
        return height;
    }

    public void setHeight(double height) {
        this.height = height;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public double getWeight() {
        return weight;
    }

    public void setWeight(double weight) {
        this.weight = weight;
    }

    public int getBasic() {
        return basic;
    }

    public void setBasic(int basic) {
        this.basic = basic;
    }

    public String getBirth() {
        return birth;
    }

    public void setBirth(String birth) {
        this.birth = birth;
    }

    public List<Activity> getActivities() {
        return activities;
    }

    public void setActivities(List<Activity> activities) {
        this.activities = activities;
    }
}